<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        sessionStorage.setItem("a","a101")
        sessionStorage.setItem("b","b201")

        console.log(sessionStorage.length);//2        
        console.log(sessionStorage.getItem("a"));//100
        console.log(sessionStorage.getItem("b"));//200

        sessionStorage.removeItem("a")
        console.log(sessionStorage.getItem("a"));//null
        console.log(sessionStorage.getItem("b"));//b200

        sessionStorage.clear()
        console.log(sessionStorage.getItem("a"));//null
        console.log(sessionStorage.getItem("b"));//null

    </script>
</body>
</html>